<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p>
    https://www.cnblogs.com/fengyuqing/p/definevarbug.html

</p>
<p>
    https://blog.csdn.net/weixin_44477431/article/details/105669002
</p>
</body>
<script type="text/javascript">


    var age = window.prompt('请输入你的年龄？');


    age = parseInt(age);

    console.log(typeof age);

    /* TODO 变量不能使用 status */
    // var status = age >= 18; // 比较大小
    var status1 = age >= 18; // 比较大小

    console.log(status); //true 18 false 18
    console.log(status == true, 'status == true');


    /*下面流程控制中的分支语句*/
    if (status1) {
        console.log('你已经成年了');
    } else {
        console.log('你还未成年！');
    }

</script>

</html>
